
package cn.hz.horse;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
 

public class EzBooter  {
 
	private EzPuter puter;
	private EzWatcher watcher;
	
	public EzBooter(){
		puter =new EzPuter();
		puter.setQu(EzSource.qu);
		watcher=new EzWatcher();
	}
	
	public void ready(EzHandle handle,EzResHandle resHandle){
		EzTask task=new  EzTask();
		handle.setSuccQu(EzSource.succQu);
		handle.setErrorQu(EzSource.errorQu);

		resHandle.setQu(EzSource.qu);
		task.installRes(resHandle);
		task.install(handle);
		watcher.setQu(EzSource.qu);
		watcher.start();
	}
	
	public void put(List list){
		puter.put(list);
	}
	
	public void put(Object  object){
		puter.put(object);
	}

	public EzPuter getPuter() {
		return puter;
	}

	public void setPuter(EzPuter puter) {
		this.puter = puter;
	}

	public EzWatcher getWatcher() {
		return watcher;
	}

	public void setWatcher(EzWatcher watcher) {
		this.watcher = watcher;
	}
	
	
}
